
using System;
using System.Windows.Forms;

namespace AntdUI_APPDemo.Controls
{
    public partial class Steps : UserControl
    {
        Form form;
        public Steps(Form _form)
        {
            form = _form;
            InitializeComponent();
        }

        private void Steps_Click(object sender, EventArgs e)
        {
            if (sender is AntdUI.Steps)
            {
            	var step = (AntdUI.Steps)sender;
                if (step.Current > step.Items.Count - 1) step.Current = 0;
                else step.Current++;
            }
        }
    }
}